package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.domain.OtherBlocketRecord;
import com.ruoyi.system.domain.OtherManualHostRecord;
import com.ruoyi.system.mapper.OtherBlockedRecordMapper;
import com.ruoyi.system.mapper.OtherManualHostRecordMapper;
import com.ruoyi.system.service.IOtherBlockedRecordService;
import com.ruoyi.system.service.IOtherManualHostRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

@Service
@DataSource(value = DataSourceType.SLAVE)
public class OtherManualHostRecordServiceImpl extends ServiceImpl<OtherManualHostRecordMapper, OtherManualHostRecord> implements IOtherManualHostRecordService {

    @Resource
    private OtherManualHostRecordMapper otherManualHostRecordMapper;

    @DataSource(value = DataSourceType.SLAVE)
    public List<HashMap> getManualHostRecord(String roomId, String startDate, String endDate, String startTime, String endTime) {
        return otherManualHostRecordMapper.getManualHostRecord(roomId, startDate, endDate, startTime, endTime);
    }

}
